/*
 * ChooseCouponListItem.java
 * business
 *
 * Created by ChenTao on 2017/6/22.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.displaylistitem;

import android.content.Context;

import com.yidiandao.business.data.bean.Coupon;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.viewholder.ChooseCouponHolder;

/**
 * 选择优惠券
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017-06-22 17:01
 */
public class ChooseCouponListItem extends DisplayListItem<ChooseCouponHolder, Coupon> {

    public ChooseCouponListItem(Coupon coupon) {
        super(coupon);
    }

    @Override
    public void onShow(Context context, ChooseCouponHolder holder) {
        holder.refreshUI(data);
    }

    @Override
    public String getDisplayItemTag() {
        return ChooseCouponListItem.class.getSimpleName();
    }

    @Override
    public Class<ChooseCouponHolder> getViewHolderClazz() {
        return ChooseCouponHolder.class;
    }
}
